

<!--
 * @Description: X射线透视设备质量控制检测现场记录
 *
 * Copyright (c) 2023 by cgl/微盛信息产业有限公司, All Rights Reserved.
-->
<template>
  <div class="content" style="position: relative;">
    <!-- <div class="tip-30">
      统一检测条件：透视模式，SID=<el-input v-model="form.sid" @change="handleChangeInfo" class="input-line"/>，SDD = <el-input v-model="form.sdd" @change="handleChangeInfo" class="input-line"/> cm；
      帧率：<el-radio-group v-model="form.isfps" class="split-radio">
              <el-radio :label="true">15fps</el-radio> <span class="split"></span>
              <el-radio :label="false">
                <el-input v-model="form.fpsedit"
                          :disabled="form.isfps == true"
                          class="input-line"
                          @change.native="changeFps($event)"
                        />fps
              </el-radio>
            </el-radio-group>
    </div> -->

    <el-button
			style="position: absolute; top: 0px; right: 10px;"
			type="primary"
			@click="handleAddTestItem01"
		>增加探测器</el-button>

    <div class="innertitle forminput" v-if="tabList.find(item => item.name.indexOf('01') > -1 && item.name.indexOf(':') > -1)">
			<span v-if="itemIndex == 0">（一）</span>
			<span v-if="itemIndex == 1">（二）</span>
			<span v-if="itemIndex == 2">（三）</span>
			<span v-if="itemIndex == 3">（四）</span>
			<span v-if="itemIndex == 4">（五）</span>
			{{ Number(itemIndex) + 1 }}号（位置：<el-input v-model="form.positionName" data-cusValidate="text" style="width: 300px;" @change="handleChangeInfo"/>）
		</div>

    <div class="tip-30">
      统一检测条件：焦点至影像探测器距离 SID =<el-input v-model="form.sid" @change="handleChangeInfo" class="input-line"/>cm，
      帧率 fps =
      <el-radio-group v-model="form.fpsDisplay" @change="handleChangeInfo">
        <el-radio :label="1">不显示</el-radio>
        <el-radio :label="0">(<el-input v-model="form.fps" @change="handleChangeInfo('fps')" class="input-line"/>)</el-radio>
      </el-radio-group>；
    </div>

    <!-- 1.透视受检者入射体表空气比稀动能率典型值---------------------------------------------------------------------------------- -->
    <div id="table1">
      <div class="innertitle">
        1.透视受检者入射体表空气比释动能率典型值: <span style="font-weight: normal; font-size: 14px;">修正值=仪器读数×校准因子</span>
      </div>
      <div class="tip-30">
        自动照射量率控制：
        <el-radio-group v-model="form1.autoShineControls">
          <el-radio :label="true">有</el-radio>
          <el-radio :label="false">无</el-radio>
        </el-radio-group>;
				<!-- <el-checkbox style="margin-right: 0px;" v-model="form1.sid">SID</el-checkbox>、 -->
				<!-- <el-checkbox style="margin-right: 0px;" v-model="form1.cokeBedDistance" @change="(value) => { if (value === false) form1.cokeBedDistanceValue = '' }">焦台距</el-checkbox>= -->
        <!-- <el-input v-model="form1.cokeBedDistanceValue" class="input-line" @change="(value) => { if (value || value === 0) form1.cokeBedDistance = true }"/>cm; -->
        <span>衰减层：30cm×30cm×20cm水模</span>
        <span style="margin-left: 30px">散射因子：
          <el-input v-model="form1.scatteringFactor"  class="input-line"/>
        </span>
      </div>
      <div class="tip-30">
        探测器位置：
        <el-radio
          v-model="form1.detectorPosition"
          :label="1"
          @change="(value) => {
            if (value == 1) {
              form1.underTheBedInputValue = ''

              form2.detectorPosition = 1
              form2.underTheBedInputValue = ''
            } else {
              form2.detectorPosition = ''
            }
            submitTestForm(2)
          }"
        >X射线管头在床上，探测器位于床上30cm，影像接收器距焦点最近；</el-radio><br />
        <el-radio
          style="margin-left: 88px;"
          v-model="form1.detectorPosition"
          :label="2"
          @change="(value) => {
            if (value == 2) {
              form1.underTheBedInputValue = ''

              form2.detectorPosition = 2
              form2.underTheBedInputValue = ''
            } else {
              form2.detectorPosition = ''
            }
            submitTestForm(2)
          }"
        >X射线管头在床下，探测器位于床上，影像接收器距床面30cm；</el-radio><br />
        <el-radio
          style="margin-left: 88px;"
          v-model="form1.detectorPosition"
          :label="3"
          @change="(value) => {
            if (value == 3) {
              form2.detectorPosition = 3
            } else {
              form2.detectorPosition = ''
            }
            submitTestForm(2)
          }"
        >X射线管头在床下，探测器位于床上，影像接收器距床面
          <el-input
            v-model="form1.underTheBedInputValue"
            class="input-line"
            @change="(value) => {
              if (value || value === 0) {
                form1.detectorPosition = 3
                form2.detectorPosition = 3
                form2.underTheBedInputValue = value
              } else {
                form2.underTheBedInputValue = ''
              }
              submitTestForm(2)
            }"/>cm;
        </el-radio>
      </div>
      <table border="1" cellspacing="0" cellpadding="0" align="center" style="width: 100%">
        <tr>
          <td rowspan="2" style="text-align: left;">
            <el-radio
              v-model="form1.fov"
              label="1"
              @change="(value) => {
                if (value == 1) {
                  form2.fov = 1
                  form3.fov = 1
                  form4.fov = 1
                  form5.fov = '1'
                  form6.fov = 1
                  form7.fov = 1
                } else {
                  form2.fov = ''
                  form3.fov = ''
                  form4.fov = ''
                  form5.fov = ''
                  form6.fov = ''
                  form7.fov = ''
                }
                submitTestForm(2)
                submitTestForm(3)
                submitTestForm(4)
                submitTestForm(5)
                submitTestForm(6)
                submitTestForm(7)
              }"
            >
              影像增强器视野
              (<el-radio-group v-model="form1.fovUnit" @input="(value) => {
                form2.fovUnit = value
                form3.fovUnit = value
                form4.fovUnit = value
                form5.fovUnit = value
                form6.fovUnit = value
                form7.fovUnit = value
                submitTestForm(2)
                submitTestForm(3)
                submitTestForm(4)
                submitTestForm(5)
                submitTestForm(6)
                submitTestForm(7)
              }">
                <el-radio :label="0">mm</el-radio>
                <el-radio style="margin-right: 0px;" :label="1">in</el-radio>
              </el-radio-group>)
            </el-radio><br />
            <el-radio
              v-model="form1.fov"
              label="2"
              @change="(value) => {
                if (value == 2) {
                  form2.fov = 2
                  form3.fov = 2
                  form4.fov = 2
                  form5.fov = '2'
                  form6.fov = 2
                  form7.fov = 2
                } else {
                  form2.fov = ''
                  form3.fov = ''
                  form4.fov = ''
                  form5.fov = ''
                  form6.fov = ''
                  form7.fov = ''
                }
                submitTestForm(2)
                submitTestForm(3)
                submitTestForm(4)
                submitTestForm(5)
                submitTestForm(6)
                submitTestForm(7)
              }"
            >平板探测器视野(mm)</el-radio>
          </td>
          <td rowspan="2">透视模式</td>
          <td rowspan="2">透视条件</td>
          <td rowspan="2">管电压<br/>(kV)</td>
          <td rowspan="2">管电流<br/>(mA)</td>
          <!-- <td rowspan="2">探测器与焦点距离（cm）</td> -->
          <td colspan="3">
            <div>空气比释动能率</div>
          </td>
        </tr>
        <tr>
          <td style="width: 200px;">仪器读数<br/>(
            <el-radio v-model="form1.readoutValueUnit" :label="1">μGy/min</el-radio>
            <el-radio v-model="form1.readoutValueUnit" :label="3">μGy/s</el-radio>
            <br/>
            <el-radio v-model="form1.readoutValueUnit" :label="4">mGy/min</el-radio>
            <el-radio v-model="form1.readoutValueUnit" :label="2">mGy/s</el-radio>
          )</td>
          <td>校准因子</td>
          <td>修正值<br/>(mGy/min)</td>
        </tr>

        <tr>
          <td>
            <div v-show="form1.fov == 1">
              <el-input
                v-model="form1.imageEnhancement"
                @change="(value) => {
                  form2.imageEnhancement_1 = value
                  form2.imageEnhancement_2 = value
                  if (form3.details[0]) form3.details[0].imageEnhancement = value
                  if (form.inspectionTypeId.includes('5')) {
                    if (form3.details[1]) form3.details[1].imageEnhancement = value
                    if (form3.details[2]) form3.details[2].imageEnhancement = value
                  }
                  form4.imageEnhancement_1 = value
                  form4.imageEnhancement_2 = value
                  form4.imageEnhancement_3 = value
                  if (form5.details[0]) form5.details[0].imageEnhancement = value
                  if (form.inspectionTypeId.includes('5')) {
                    if (form5.details[1]) form5.details[1].imageEnhancement = value
                    if (form5.details[2]) form5.details[2].imageEnhancement = value
                  }
                  form6.imageEnhancement_1 = value
                  form6.imageEnhancement_2 = value
                  form6.imageEnhancement_3 = value
                  form7.imageEnhancement = value
                  submitTestForm(2)
                  submitTestForm(3)
                  submitTestForm(4)
                  submitTestForm(5)
                  submitTestForm(6)
                  submitTestForm(7)
                }"
              />
            </div>
            <div v-show="form1.fov == 2">
              <el-input
                v-model="form1.fov_value1_1"
                class="input-line"
                @change="(value) => {
                  form2.fov_value1_1 = value
                  form2.fov_value2_1 = value
                  if (form3.details[0]) form3.details[0].fov_value1 = value
                  if (form.inspectionTypeId.includes('5')) {
                    if (form3.details[1]) form3.details[1].fov_value1 = value
                    if (form3.details[2]) form3.details[2].fov_value1 = value
                  }
                  form4.fov_value1_1 = value
                  form4.fov_value2_1 = value
                  form4.fov_value3_1 = value
                  if (form5.details[0]) form5.details[0].fov_value1 = value
                  if (form.inspectionTypeId.includes('5')) {
                    if (form5.details[1]) form5.details[1].fov_value1 = value
                    if (form5.details[2]) form5.details[2].fov_value1 = value
                  }
                  form6.fov_value1_1 = value
                  form6.fov_value2_1 = value
                  form6.fov_value3_1 = value
                  form7.fov_value1 = value
                  submitTestForm(2)
                  submitTestForm(3)
                  submitTestForm(4)
                  submitTestForm(5)
                  submitTestForm(6)
                  submitTestForm(7)
                }"
              />
               x
              <el-input
                v-model="form1.fov_value1_2"
                class="input-line"
                @change="(value) => {
                  form2.fov_value1_2 = value
                  form2.fov_value2_2 = value
                  if (form3.details[0]) form3.details[0].fov_value2 = value
                  if (form.inspectionTypeId.includes('5')) {
                    if (form3.details[1]) form3.details[1].fov_value2 = value
                    if (form3.details[2]) form3.details[2].fov_value2 = value
                  }
                  form4.fov_value1_2 = value
                  form4.fov_value2_2 = value
                  form4.fov_value3_2 = value
                  if (form5.details[0]) form5.details[0].fov_value2 = value
                  if (form.inspectionTypeId.includes('5')) {
                    if (form5.details[1]) form5.details[1].fov_value2 = value
                    if (form5.details[2]) form5.details[2].fov_value2 = value
                  }
                  form6.fov_value1_2 = value
                  form6.fov_value2_2 = value
                  form6.fov_value3_2 = value
                  form7.fov_value2 = value
                  submitTestForm(2)
                  submitTestForm(3)
                  submitTestForm(4)
                  submitTestForm(5)
                  submitTestForm(6)
                  submitTestForm(7)
                }"
              />
            </div>
          </td>
          <td>
            <el-input
              data-cusValidate="text"
              v-model="form1.perspectiveMode"
              @change="(value) => {
                // form2.perspectiveMode_1 = value
                // form2.perspectiveMode_2 = value
                if (form3.details[0]) form3.details[0].perspectiveMode = value
                if (form.inspectionTypeId.includes('5')) {
                  if (form3.details[1]) form3.details[1].perspectiveMode = value
                  if (form3.details[2]) form3.details[2].perspectiveMode = value
                }
                form4.perspectiveMode_1 = value
                form4.perspectiveMode_2 = value
                form4.perspectiveMode_3 = value
                form6.perspectiveMode = value
                submitTestForm(2)
                submitTestForm(3)
                submitTestForm(4)
                submitTestForm(6)
              }"/>
          </td>
          <td>
            <el-input
              data-cusValidate="text"
              v-model="form1.perspectiveCondition"
              @change="(value) => {
                form2.perspectiveCondition_1 = value
                form2.perspectiveCondition_2 = value
                if (form3.details[0]) form3.details[0].perspectiveCondition = value
                if (form.inspectionTypeId.includes('5')) {
                  if (form3.details[1]) form3.details[1].perspectiveCondition = value
                  if (form3.details[2]) form3.details[2].perspectiveCondition = value
                }
                form4.perspectiveCondition_1 = value
                form4.perspectiveCondition_2 = value
                form4.perspectiveCondition_3 = value
                form6.perspectiveCondition = value
                submitTestForm(2)
                submitTestForm(3)
                submitTestForm(4)
                submitTestForm(6)
              }"
            />
          </td>
          <td><el-input v-model="form1.tubeVoltage"/></td>
          <td><el-input v-model="form1.tubeCurrent"/></td>
          <!-- <td><el-input v-model="form1.detectionRange"/></td> -->
          <td><el-input v-model="form1.readoutValue"/></td>
          <td class="result"><el-input v-model="form1.calibrationFactor" disabled/></td>
          <td class="result"><el-input v-model="form1.correctedValue" disabled/></td>
        </tr>
      </table>

      <!-- <div class="tip-30">
        影像接收器类型：
          <el-checkbox v-model="form1.fluoroscopicScreen" :label="0">透视荧光屏</el-checkbox>
          <el-checkbox v-model="form1.imageIntensifier" :label="1">影像增强器</el-checkbox>
          <el-checkbox v-model="form1.detector" :label="2">平板探测器</el-checkbox>
        <br/>
        管球位置：
          <el-checkbox v-model="form1.onTheBed" :label="0">X射线球管在床上</el-checkbox>
          <el-checkbox v-model="form1.underTheBed" :label="1">X射线球管在床下</el-checkbox>
          衰减层：标准水膜
        <br/>
        AEC: <el-radio-group v-model="form1.aec">
          <el-radio :label="true">有</el-radio>
          <el-radio :label="false">无（
              <el-checkbox v-model="form1.kv3mA" :label="0">70kV,3mA</el-checkbox> <span class="split"></span>
              <el-checkbox v-model="form1.kv1mA" :label="1">70kV,1mA</el-checkbox>）
          </el-radio>
        </el-radio-group>
      </div> -->
      <!-- <table border="1" cellspacing="0" cellpadding="0" align="center" style="width: 100%">
        <tr>
          <td rowspan="2">剂量率模式</td>
          <td rowspan="2">影像接收器最大<br/>FOV(
            <el-select v-model="form1.maxFOVUnit"
                        placeholder="请选择"
                        style="width: 70%; display: inline-block"
                        class="inputborder"
                        @change="handleChangeReadoutValueUnit($event, 1)"
                      >
              <el-option
                v-for="item in fovList"
                :key="item.id"
                :label="item.label" :value="item.value"></el-option>
            </el-select>
          )</td>
          <td rowspan="2">管电压<br/>(kV)</td>
          <td rowspan="2">管电流<br/>(mA)</td>
          <td rowspan="2">探测器与焦点<br/>距离（cm）</td>
          <td colspan="2">空气比释动能率</td>
        </tr>
        <tr>
          <td>仪器读数<br/>(
            <el-select v-model="form1.readoutValueUnit"
                        placeholder="请选择"
                        style="width: 70%; display: inline-block"
                        class="inputborder"
                        @change="handleChangeReadoutValueUnit($event, 1)"
                      >
              <el-option
                v-for="item in readoutList"
                :key="item.id"
                :label="item.label" :value="item.value"></el-option>
            </el-select>
          )</td>
          <td>修正值<br/>(nGy/min)</td>
        </tr>

        <tr>
          <td>普通剂量率模式</td>
          <td><el-input v-model="form1.maxFOV"/></td>
          <td><el-input v-model="form1.tubeVoltage"/></td>
          <td><el-input v-model="form1.tubeCurrent"/></td>
          <td><el-input v-model="form1.detectionRange"/></td>
          <td><el-input v-model="form1.readoutValue"/></td>
          <td class="result"><span>{{ form1.correctedValue }}</span></td>
        </tr>
      </table> -->
      <!-- <el-button type="primary" size="mini" @click.native.prevent="sc()">生成</el-button> -->

      <!-- <div class="tip-50">
        <i>
          注：校准因子$N_{A}$ =<el-input v-model="form1.calibrationFactor"/>，修正值=仪器读数X校准因子；如用RF探头，反射因子为<el-input v-model="form1.bsf"/>。
        </i>
      </div> -->

      <!-- <div class="tip-30 style-center">表 1 X射线设备受检者入射体表空气比释动能率检测条件</div>
      <table border="1" cellspacing="0" cellpadding="0" align="center" style="width: 98%">
        <tr>
          <td>X射线透视设备类型</td>
          <td>剂量仪探头位置</td>
          <td>影像接收器<br/>位置</td>
          <td>有自动透视条件</td>
          <td>无自动透视条件</td>
        </tr>
        <tr>
          <td>直接荧光屏透视设备</td>
          <td>床上</td>
          <td>——</td>
          <td>自动条件，水模</td>
          <td>70kV，3mA，水模</td>
        </tr>
        <tr>
          <td>X射线球管在床上</td>
          <td>床上30 cm</td>
          <td>SID最小</td>
          <td>自动条件，水模</td>
          <td>70kV。1mA，水模</td>
        </tr>
        <tr>
          <td>X射线球管在床下</td>
          <td>床上</td>
          <td>SID最小，距床面<br/>30 cm</td>
          <td>自动条件，水模</td>
          <td>70kV。1mA，水模</td>
        </tr>
        <tr>
          <td>C形臂</td>
          <td>影像接收器前30 cm</td>
          <td>SID最小</td>
          <td>自动条件，水模</td>
          <td>70kV。1mA，水模</td>
        </tr>
      </table> -->
    </div>

    <!-- 2.透视受检者入射体表空气比释动能率最大值------------------------------------------------------------------------ -->
    <div id="table2">
      <div class="innertitle">
        2.透视受检者入射体表空气比释动能率最大值: <span style="font-weight: normal; font-size: 14px;">修正值=仪器读数×校准因子</span>
      </div>
      <div>
        （<el-checkbox
          v-model="form2.notHave"
          @change="(value) => {
            if (value) {
              this.form2 = {}
              this.form2.notHave = true
              this.form2.notHaveAUTO = true
            }
          }"
        >状态检测无此项</el-checkbox>）
        （<el-checkbox
          v-model="form2.notHaveAUTO"
          @change="(value) => {
            if (value) {
              this.form2 = {}
              this.form2.notHave = true
              this.form2.notHaveAUTO = true
            }
          }"
        >该设备无自动照射量率控制功能，检测无此项</el-checkbox>）
      </div>
      <div>
        <span>衰减层：30cm×30cm×20cm水模+2mm</span>
        铅板<el-checkbox style="margin-right: 5px;" v-model="form2.stereotype">:</el-checkbox>
        <!-- <el-checkbox style="margin-right: 0px;" v-model="form2.sid">SID</el-checkbox>、 -->
				<!-- <el-checkbox style="margin-right: 0px;" v-model="form2.cokeBedDistance" @change="(value) => { if (value === false) form2.cokeBedDistanceValue = '' }">焦台距</el-checkbox>= -->
        <!-- <el-input v-model="form2.cokeBedDistanceValue" class="input-line" @change="(value) => { if (value || value === 0) form2.cokeBedDistance = true }"/>cm; -->
      </div>
      <div class="tip-30">
        探测器位置：
        <el-radio v-model="form2.detectorPosition" :label="1" @change="form2.underTheBedInputValue = ''">X射线管头在床上，探测器位于床上30cm，影像接收器距焦点最近；</el-radio><br />
        <el-radio style="margin-left: 88px;" v-model="form2.detectorPosition" :label="2" @change="form2.underTheBedInputValue = ''">X射线管头在床下，探测器位于床上，影像接收器距床面30cm；</el-radio><br />
        <el-radio style="margin-left: 88px;" v-model="form2.detectorPosition" :label="3">X射线管头在床下，探测器位于床上，影像接收器距床面
          <el-input v-model="form2.underTheBedInputValue" class="input-line" @change="(value) => { if (value || value === 0) form2.detectorPosition = 3 }"/>cm;
        </el-radio>
      </div>
      <table border="1" cellspacing="0" cellpadding="0" align="center" style="width: 100%">
        <tr>
          <td rowspan="2" style="text-align: left;">
            <el-radio v-model="form2.fov" :label="1">
              影像增强器视野
              (<el-radio-group v-model="form2.fovUnit">
                <el-radio :label="0">mm</el-radio>
                <el-radio style="margin-right: 0px;" :label="1">in</el-radio>
              </el-radio-group>)
            </el-radio><br />
            <el-radio v-model="form2.fov" :label="2">平板探测器视野(mm)</el-radio>
          </td>
          <td rowspan="2">透视模式</td>
          <td rowspan="2">透视条件</td>
          <td rowspan="2">管电压<br/>(kV)</td>
          <td rowspan="2">管电流<br/>(mA)</td>
          <!-- <td rowspan="2">探测器与焦点距离（cm）</td> -->
          <td colspan="3">
            <div>空气比释动能率</div>
          </td>
        </tr>
        <tr>
          <td style="width: 200px;">仪器读数<br/>(
            <el-radio v-model="form2.readoutValueUnit" :label="1">μGy/min</el-radio>
            <el-radio v-model="form2.readoutValueUnit" :label="3">μGy/s</el-radio>
            <br/>
            <el-radio v-model="form2.readoutValueUnit" :label="4">mGy/min</el-radio>
            <el-radio v-model="form2.readoutValueUnit" :label="2">mGy/s</el-radio>
          )</td>
          <td>校准因子</td>
          <td>修正值<br/>(mGy/min)</td>
        </tr>

        <tr>
          <td>
            <div v-show="form2.fov == 1">
              <el-input v-model="form2.imageEnhancement_1"/>
            </div>
            <div v-show="form2.fov == 2">
              <el-input v-model="form2.fov_value1_1" class="input-line"/> x <el-input v-model="form2.fov_value1_2" class="input-line"/>
            </div>
          </td>
          <td class="result"><el-input data-cusValidate="text" v-model="form2.perspectiveMode_1" disabled/></td>
          <td><el-input data-cusValidate="text" v-model="form2.perspectiveCondition_1"/></td>
          <td><el-input v-model="form2.tubeVoltage_1"/></td>
          <td><el-input v-model="form2.tubeCurrent_1"/></td>
          <!-- <td><el-input v-model="form2.detectionRange_1"/></td> -->
          <td><el-input v-model="form2.readoutValue_1"/></td>
          <td class="result"><el-input v-model="form2.calibrationFactor_1" disabled/></td>
          <td class="result"><el-input v-model="form2.correctedValue_1" disabled/></td>
        </tr>

        <tr>
          <td>
            <div v-show="form2.fov == 1">
              <el-input v-model="form2.imageEnhancement_2"/>
            </div>
            <div v-show="form2.fov == 2">
              <el-input v-model="form2.fov_value2_1" class="input-line"/> x <el-input v-model="form2.fov_value2_2" class="input-line"/>
            </div>
          </td>
          <td class="result"><el-input data-cusValidate="text" v-model="form2.perspectiveMode_2" disabled/></td>
          <td><el-input data-cusValidate="text" v-model="form2.perspectiveCondition_2"/></td>
          <td><el-input v-model="form2.tubeVoltage_2"/></td>
          <td><el-input v-model="form2.tubeCurrent_2"/></td>
          <!-- <td><el-input v-model="form2.detectionRange_2"/></td> -->
          <td><el-input v-model="form2.readoutValue_2"/></td>
          <td class="result"><el-input v-model="form2.calibrationFactor_2" disabled/></td>
          <td class="result"><el-input v-model="form2.correctedValue_2" disabled/></td>
        </tr>
      </table>
      <!-- （<el-radio-group v-model="form.thyroidShielding">
        <el-radio :label="1">状态检测无此项</el-radio>
        <el-radio :label="0" style="margin-right: 0">设备无此项功能</el-radio>
      </el-radio-group>） -->
      <!-- （
        <el-checkbox v-model="form2.notHave">状态检测无此项</el-checkbox>
        <el-checkbox v-model="form2.notHaveAEC">无ACE不检测此项</el-checkbox>
      ） -->
      <!-- <div class="tip-30">条件见表 1;衰减层:标准水模+2mmPb  &nbsp;  照射野小于铅板尺寸</div> -->

      <!-- <table border="1" cellspacing="0" cellpadding="0" align="center" style="width: 100%">
        <tr>
          <td rowspan="2">剂量率模式</td>
          <td rowspan="2">影像接收器最大照射野<br/>尺寸(
            <el-select v-model="form2.maxIrradiationFieldSizeUnit"
                        placeholder="请选择"
                        style="width: 70%; display: inline-block"
                        class="inputborder"
                        @change="handleChangeReadoutValueUnit($event, 2)"
                      >
              <el-option
                v-for="item in fieldSizeList"
                :key="item.id"
                :label="item.label" :value="item.value"></el-option>
            </el-select>
          )</td>
          <td rowspan="2">管电压<br/>(kV)</td>
          <td rowspan="2">管电流<br/>(mA)</td>
          <td colspan="2">空气比释动能率</td>
        </tr>
        <tr>
          <td>仪器读数<br/>(
            <el-select v-model="form2.readoutValueUnit"
                        placeholder="请选择"
                        style="width: 70%; display: inline-block"
                        class="inputborder"
                        @change="handleChangeReadoutValueUnit($event, 2)"
                      >
              <el-option
                v-for="item in readoutList"
                :key="item.id"
                :label="item.label" :value="item.value"></el-option>
            </el-select>
          )</td>
          <td>修正值<br/>(nGy/min)</td>
        </tr>

        <tr>
          <td>普通剂量率模式</td>
          <td><el-input v-model="form2.maxIrradiationFieldSizeOrdinary"/></td>
          <td><el-input v-model="form2.tubeVoltageOrdinary"/></td>
          <td><el-input v-model="form2.tubeCurrentOrdinary"/></td>
          <td><el-input v-model="form2.readoutValueOrdinary"/></td>
          <td class="result"><span>{{ form2.correctedValueOrdinary }}</span></td>
        </tr>

        <tr>
          <td>高剂量率模式</td>
          <td><el-input v-model="form2.maxIrradiationFieldSizeHigh"/></td>
          <td><el-input v-model="form2.tubeVoltageOHigh"/></td>
          <td><el-input v-model="form2.tubeCurrentHigh"/></td>
          <td><el-input v-model="form2.readoutValueHigh"/></td>
          <td class="result"><span>{{ form2.correctedValueHigh }}</span></td>
        </tr>
      </table>

      <div class="tip-50">
        <i>
          注：校准因子$N_{A}$ =<el-input v-model="form2.calibrationFactor"/>，修正值=仪器读数X校准因子.
        </i>
      </div> -->
    </div>

    <!-- 3.高对比度分辨力------------------------------------------------------------------------ -->
    <div id="table3">
      <div class="innertitle">
        3.高对比度分辨力:
      </div>
      <table border="1" cellspacing="0" cellpadding="0" align="center" style="width: 100%">
        <tr>
          <td style="text-align: left;">
            <el-radio v-model="form3.fov" :label="1">
              影像增强器视野
              (<el-radio-group v-model="form3.fovUnit">
                <el-radio :label="0">mm</el-radio>
                <el-radio style="margin-right: 0px;" :label="1">in</el-radio>
              </el-radio-group>)
            </el-radio><br />
            <el-radio v-model="form3.fov" :label="2">平板探测器视野(mm)</el-radio>
          </td>
          <td>透视模式</td>
          <td>透视条件</td>
          <td>管电压(kV)</td>
          <td>管电流(mA)</td>
          <td>中心分辨力(lp/mm)</td>
          <td v-show="basicForm.inspectionOTTypeIdList == '4'">基线值(lp/mm)</td>
          <td v-show="basicForm.inspectionOTTypeIdList == '4'">结果(%)</td>
          <td></td>
        </tr>
        <tr v-for="(item, index) in form3.details" :key="index">
          <td>
            <div v-show="form3.fov == 1">
              <el-input v-model="item.imageEnhancement"/>
            </div>
            <div v-show="form3.fov == 2">
              <el-input v-model="item.fov_value1" class="input-line"/> x <el-input v-model="item.fov_value2" class="input-line"/>
            </div>
          </td>
          <td><el-input data-cusValidate="text" v-model="item.perspectiveMode"/></td>
          <td><el-input data-cusValidate="text" v-model="item.perspectiveCondition"/></td>
          <td><el-input v-model="item.tubeVoltage"/></td>
          <td><el-input v-model="item.tubeCurrent"/></td>
          <td><el-input v-model="item.centralResolution"/></td>
          <td v-show="basicForm.inspectionOTTypeIdList == '4'">
            <el-input v-model="item.baseLineValue"/>
          </td>
          <td class="result" v-show="basicForm.inspectionOTTypeIdList == '4'">
            <el-input v-model="item.deviation" disabled/>
          </td>
          <td width="50px">
            <span
              style="
                display: inline-block;
                width: 30px;
                padding: 2px 0;
                border: 1px solid #ccc;
                color: #888;
                border-radius: 2px;
                cursor: pointer;
                position: relative;
                z-index: 999;
              "
              @click="handleRemoveForm3Row(index)"
              v-if="index != 0"
            >-</span>
          </td>
        </tr>
        <tr>
          <td colspan="9">
            <span
              style="
                display: inline-block;
                width: 50px;
                padding: 2px 0;
                border: 1px solid #ccc;
                margin-left: 10px;
                color: #888;
                border-radius: 2px;
                cursor: pointer;
                position: relative;
                z-index: 999;
              "
              @click="handleAddForm3Row"
            >+</span>
          </td>
        </tr>
      </table>
    </div>

    <!-- 4.低对比分辨力------------------------------------------------------------------------ -->
    <div id="table4">
      <div class="innertitle">
        4.低对比分辨力: <span style="font-weight: normal; font-size: 14px;">检测模体位置：尽量靠近影像接收器</span>

        <!-- <div
          style="float: right; font-size: 15px; color: #2A72EE; cursor: pointer; text-decoration: underline;"
          @click="showLowContrastTestCardDialog= true"
        >
          <i class="el-icon-view"></i><span>查看低对比度测试卡</span>
        </div> -->
      </div>
      <table border="1" cellspacing="0" cellpadding="0" align="center" style="width: 100%">
        <tr>
          <td style="text-align: left;">
            <el-radio v-model="form4.fov" :label="1">
              影像增强器视野
              (<el-radio-group v-model="form4.fovUnit">
                <el-radio :label="0">mm</el-radio>
                <el-radio style="margin-right: 0px;" :label="1">in</el-radio>
              </el-radio-group>)
            </el-radio><br />
            <el-radio v-model="form4.fov" :label="2">平板探测器视野(mm)</el-radio>
          </td>
          <td>透视模式</td>
          <td>透视条件</td>
          <td>管电压(kV)</td>
          <td>管电流(mA)</td>
          <td>分辨孔径直径(mm)</td>
          <td>可探测最小细节(个)</td>
          <td>低对比度细节阈值(%)</td>
        </tr>
        <tr>
          <td>
            <div v-show="form4.fov == 1">
              <el-input v-model="form4.imageEnhancement_1"/>
            </div>
            <div v-show="form4.fov == 2">
              <el-input v-model="form4.fov_value1_1" class="input-line"/> x <el-input v-model="form4.fov_value1_2" class="input-line"/>
            </div>
          </td>
          <td><el-input data-cusValidate="text" v-model="form4.perspectiveMode_1"/></td>
          <td><el-input data-cusValidate="text" v-model="form4.perspectiveCondition_1"/></td>
          <td><el-input v-model="form4.tubeVoltage_1"/></td>
          <td><el-input v-model="form4.tubeCurrent_1"/></td>
          <td><el-input v-model="form4.apertureDiameter_1"/></td>
          <td><el-input v-model="form4.detailCount_1"/></td>
          <td><el-input v-model="form4.thresholdValue_1"/></td>
        </tr>
        <!-- <tr>
          <td>
            <div v-show="form4.fov == 1">
              <el-input v-model="form4.imageEnhancement_2"/>
            </div>
            <div v-show="form4.fov == 2">
              <el-input v-model="form4.fov_value2_1" class="input-line"/> x <el-input v-model="form4.fov_value2_2" class="input-line"/>
            </div>
          </td>
          <td><el-input data-cusValidate="text" v-model="form4.perspectiveMode_2"/></td>
          <td><el-input data-cusValidate="text" v-model="form4.perspectiveCondition_2"/></td>
          <td><el-input v-model="form4.tubeVoltage_2"/></td>
          <td><el-input v-model="form4.tubeCurrent_2"/></td>
          <td><el-input v-model="form4.apertureDiameter_2"/></td>
          <td><el-input v-model="form4.detailCount_2"/></td>
          <td class="result"><el-input v-model="form4.thresholdValue_2" disabled/></td>
        </tr> -->
        <!-- <tr>
          <td>
            <div v-show="form4.fov == 1">
              <el-input v-model="form4.imageEnhancement_3"/>
            </div>
            <div v-show="form4.fov == 2">
              <el-input v-model="form4.fov_value3_1" class="input-line"/> x <el-input v-model="form4.fov_value3_2" class="input-line"/>
            </div>
          </td>
          <td><el-input data-cusValidate="text" v-model="form4.perspectiveMode_3"/></td>
          <td><el-input data-cusValidate="text" v-model="form4.perspectiveCondition_3"/></td>
          <td><el-input v-model="form4.tubeVoltage_3"/></td>
          <td><el-input v-model="form4.tubeCurrent_3"/></td>
          <td><el-input v-model="form4.apertureDiameter_3"/></td>
          <td><el-input v-model="form4.detailCount_3"/></td>
          <td class="result"><el-input v-model="form4.thresholdValue_3" disabled/></td>
        </tr> -->
      </table>
    </div>

    <!-- 5.入射屏前空气比释动能率:--------------------------------------------------------------------------------------- -->
    <div id="table5">
      <div class="innertitle">
        5.入射屏前空气比释动能率: <span style="font-weight: normal; font-size: 14px;">修正值=仪器读数×校准因子</span>
      </div>
      <div class="tip-30">
        自动照射量率控制：
        <el-radio-group v-model="form5.autoShineControls">
          <el-radio :label="true">有</el-radio>
          <el-radio :label="false">无</el-radio>
        </el-radio-group>;
				<!-- <el-checkbox style="margin-right: 0px;" v-model="form5.sid">SID</el-checkbox>、 -->
				<!-- <el-checkbox style="margin-right: 0px;" v-model="form5.cokeBedDistance" @change="(value) => { if (value === false) form5.cokeBedDistanceValue = '' }">焦台距</el-checkbox>= -->
        <!-- <el-input v-model="form5.cokeBedDistanceValue" class="input-line" @change="(value) => { if (value || value === 0) form5.cokeBedDistance = true }"/>cm; -->
        <span>衰减层：1.5mm铜板</span>
      </div>
      <div class="tip-30">
        影像增强器位置：
        <el-radio v-model="form5.detectorPosition" :label="1" @change="form5.underTheBedInputValue = ''">X射线管头在床上，影像接收器距焦点最近，探测器紧贴影像接收器；</el-radio><br />
        <el-radio style="margin-left: 115px;" v-model="form5.detectorPosition" :label="2" @change="form5.underTheBedInputValue = ''">X射线管头在床下，影像增强器距床面30cm，探测器紧贴影像接收器；</el-radio><br />
        <el-radio style="margin-left: 115px;" v-model="form5.detectorPosition" :label="3">X射线管头在床下，影像增强器距床面30cm，探测器距影像接收器
          <el-input v-model="form5.underTheBedInputValue" class="input-line" @change="(value) => { if (value || value === 0) form5.detectorPosition = 3 }"/>cm;
        </el-radio>
      </div>
      <table border="1" cellspacing="0" cellpadding="0" align="center" style="width: 100%;">
        <tr>
          <td rowspan="2" style="text-align: left;">
            <el-radio v-model="form5.fov" label="1">
              影像增强器视野
              (<el-radio-group v-model="form5.fovUnit">
                <el-radio :label="0">mm</el-radio>
                <el-radio style="margin-right: 0px;" :label="1">in</el-radio>
              </el-radio-group>)
            </el-radio><br />
            <el-radio v-model="form5.fov" label="2">平板探测器视野(mm)</el-radio><br />
            <el-radio v-model="form5.fov" label="3">对角线(mm)</el-radio><br />

            <div v-show="form5.fov == 3">
              <el-radio v-model="form5.proportion" :label="0">16:9</el-radio>
              <el-radio v-model="form5.proportion" :label="1">4:3</el-radio>
						</div>
          </td>
          <td rowspan="2">管电压<br/>(kV)</td>
          <td rowspan="2">管电流<br/>(mA)</td>
          <td rowspan="2" width="80px">滤线栅</td>
          <td colspan="3">空气比释动能率</td>
          <td rowspan="2"></td>
        </tr>

        <tr>
          <td style="width: 280px;">仪器读数<br/>(
            <el-radio v-model="form5.readoutValueUnit" :label="1">μGy/min</el-radio>
            <el-radio v-model="form5.readoutValueUnit" :label="2">μGy/s</el-radio>
            <el-radio style="margin-right: 0px;" v-model="form5.readoutValueUnit" :label="3">nGy/s</el-radio>
          )</td>
          <td>校准因子</td>
          <td>修正值<br/>(μGy/min)</td>
        </tr>
        <tr v-for="(item, index) in form5.details" :key="index">
          <td>
            <div v-show="form5.fov == 1">
              <el-input v-model="item.imageEnhancement"/>
            </div>
            <div v-show="form5.fov == 2">
              <el-input v-model="item.fov_value1" class="input-line"/> x <el-input v-model="item.fov_value2" class="input-line"/>
            </div>
            <div v-show="form5.fov == 3">
              <el-input v-model="item.diagonal"/>
            </div>
          </td>
          <td><el-input v-model="item.tubeVoltage"/></td>
          <td><el-input v-model="item.tubeCurrent"/></td>
          <td :rowspan="form5.details.length" v-if="index == 0">
            <el-radio-group v-model="form5.filterGrid" class="split-radio">
              <el-radio :label="true">有</el-radio><br />
              <el-radio :label="false">无</el-radio>
            </el-radio-group>
          </td>
          <td><el-input v-model="item.readoutValue"/></td>
          <td class="result"><el-input v-model="item.calibrationFactor" disabled/></td>
          <td class="result"><el-input v-model="item.correctedValue" disabled/></td>
          <td width="50px">
            <span
              style="
                display: inline-block;
                width: 30px;
                padding: 2px 0;
                border: 1px solid #ccc;
                color: #888;
                border-radius: 2px;
                cursor: pointer;
                position: relative;
                z-index: 999;
              "
              @click="handleRemoveForm5Row(index)"
              v-if="index != 0"
            >-</span>
          </td>
        </tr>
        <tr>
          <td colspan="9">
            <span
              style="
                display: inline-block;
                width: 50px;
                padding: 2px 0;
                border: 1px solid #ccc;
                margin-left: 10px;
                color: #888;
                border-radius: 2px;
                cursor: pointer;
                position: relative;
                z-index: 999;
              "
              @click="handleAddForm5Row"
            >+</span>
          </td>
        </tr>
      </table>
    </div>

    <!-- 6.自动亮度控制------------------------------------------------------------------ -->
    <div id="table6">
      <div class="innertitle" style="position: relative;">
        6.自动亮度控制:
        （<el-checkbox v-model="form6.aec">无AEC功能</el-checkbox>）
        <span style="position: absolute; right: 0px; top: 15px;"><i>$E = {L - \overline L \over \overline L} \times 100\%$</i></span>
      </div>
      <div class="tip-30">
        透视模式：
        <el-input data-cusValidate="text" v-model="form6.perspectiveMode" class="input-line"/>；
        透视条件：
        <el-input data-cusValidate="text" v-model="form6.perspectiveCondition" class="input-line"/>；
        照射野尺寸：略小于检测模体。
      </div>
      <table border="1" cellspacing="0" cellpadding="0" align="center" style="width: 100%;">
        <tr>
          <td style="text-align: left;">
            <!-- <el-radio v-model="form6.condition" :label="1">入射屏直径(mm)</el-radio><br />
            <el-radio v-model="form6.condition" :label="2">长边尺寸(mm)</el-radio> -->
            <el-radio v-model="form6.fov" :label="1">
              影像增强器视野
              (<el-radio-group v-model="form6.fovUnit">
                <el-radio :label="0">mm</el-radio>
                <el-radio style="margin-right: 0px;" :label="1">in</el-radio>
              </el-radio-group>)
            </el-radio><br />
            <el-radio v-model="form6.fov" :label="2">平板探测器视野(mm)</el-radio>
          </td>
          <td style="width: 180px;">衰减层</td>
          <td>管电压<br />(kV)</td>
          <td>管电流<br />(mA)</td>
          <td colspan="3">屏幕亮度<br />L(cd/<i>$m^2$</i>)</td>
          <!-- <td>平均值</td>
          <td>校准因子</td>
          <td>修正值</td> -->
          <td>平均值<br />(cd/<i>$m^2$</i>)</td>
          <td>亮度偏差<br />E(%)</td>
        </tr>
        <!-- 第一行 -->
        <tr>
          <td rowspan="2">
            <!-- <el-input v-model="form6.dimension1"/> -->
            <div v-show="form6.fov == 1">
              <el-input v-model="form6.imageEnhancement_1"/>
            </div>
            <div v-show="form6.fov == 2">
              <el-input v-model="form6.fov_value1_1" class="input-line"/> x <el-input v-model="form6.fov_value1_2" class="input-line"/>
            </div>
          </td>
          <td>20mm铝板</td>
          <td>
            <el-input v-model="form6.tubeVoltage1_1"/>
          </td>
          <td>
            <el-input v-model="form6.tubeCurrent1_1"/>
          </td>
          <td>
            <el-input v-model="form6.brightness1_1_1"/>
          </td>
          <td>
            <el-input v-model="form6.brightness1_1_2"/>
          </td>
          <td>
            <el-input v-model="form6.brightness1_1_3"/>
          </td>
          <!-- <td class="result">
            <el-input v-model="form6.average1_1" disabled/>
          </td>
          <td class="result">
            <el-input v-model="form6.calibrationFactor1_1" disabled/>
          </td>
          <td class="result">
            <el-input v-model="form6.correctionValue1_1" disabled/>
          </td> -->
          <td rowspan="2" class="result">
            <el-input v-model="form6.average_1" disabled/>
          </td>
          <td class="result">
            <el-input v-model="form6.brightnessDeviation1_1" disabled/>
          </td>
        </tr>
        <!-- 第二行 -->
        <tr>
          <td>20mm铝板+1.5mm铜板</td>
          <td>
            <el-input v-model="form6.tubeVoltage1_2"/>
          </td>
          <td>
            <el-input v-model="form6.tubeCurrent1_2"/>
          </td>
          <td>
            <el-input v-model="form6.brightness1_2_1"/>
          </td>
          <td>
            <el-input v-model="form6.brightness1_2_2"/>
          </td>
          <td>
            <el-input v-model="form6.brightness1_2_3"/>
          </td>
          <!-- <td class="result">
            <el-input v-model="form6.average1_2" disabled/>
          </td>
          <td class="result">
            <el-input v-model="form6.calibrationFactor1_2" disabled/>
          </td>
          <td class="result">
            <el-input v-model="form6.correctionValue1_2" disabled/>
          </td> -->
          <td class="result">
            <el-input v-model="form6.brightnessDeviation1_2" disabled/>
          </td>
        </tr>
        <!-- 第三行 -->
        <tr v-if="false">
          <td rowspan="2">
            <!-- <el-input v-model="form6.dimension2"/> -->
            <div v-show="form6.fov == 1">
              <el-input v-model="form6.imageEnhancement_2"/>
            </div>
            <div v-show="form6.fov == 2">
              <el-input v-model="form6.fov_value2_1" class="input-line"/> x <el-input v-model="form6.fov_value2_2" class="input-line"/>
            </div>
          </td>
          <td>20mm铝板</td>
          <td>
            <el-input v-model="form6.tubeVoltage2_1"/>
          </td>
          <td>
            <el-input v-model="form6.tubeCurrent2_1"/>
          </td>
          <td>
            <el-input v-model="form6.brightness2_1_1"/>
          </td>
          <td>
            <el-input v-model="form6.brightness2_1_2"/>
          </td>
          <td>
            <el-input v-model="form6.brightness2_1_3"/>
          </td>
          <!-- <td class="result">
            <el-input v-model="form6.average2_1" disabled/>
          </td>
          <td class="result">
            <el-input v-model="form6.calibrationFactor2_1" disabled/>
          </td>
          <td class="result">
            <el-input v-model="form6.correctionValue2_1" disabled/>
          </td> -->
          <td rowspan="2" class="result">
            <el-input v-model="form6.average_2" disabled/>
          </td>
          <td class="result">
            <el-input v-model="form6.brightnessDeviation2_1" disabled/>
          </td>
        </tr>
        <!-- 第四行 -->
        <tr v-if="false">
          <td>20mm铝板+1.5mm铜板</td>
          <td>
            <el-input v-model="form6.tubeVoltage2_2"/>
          </td>
          <td>
            <el-input v-model="form6.tubeCurrent2_2"/>
          </td>
          <td>
            <el-input v-model="form6.brightness2_2_1"/>
          </td>
          <td>
            <el-input v-model="form6.brightness2_2_2"/>
          </td>
          <td>
            <el-input v-model="form6.brightness2_2_3"/>
          </td>
          <!-- <td class="result">
            <el-input v-model="form6.average2_2" disabled/>
          </td>
          <td class="result">
            <el-input v-model="form6.calibrationFactor2_2" disabled/>
          </td>
          <td class="result">
            <el-input v-model="form6.correctionValue2_2" disabled/>
          </td> -->
          <td class="result">
            <el-input v-model="form6.brightnessDeviation2_2" disabled/>
          </td>
        </tr>
        <!-- 第五行 -->
        <tr v-if="false">
          <td rowspan="2">
            <!-- <el-input v-model="form6.dimension3"/> -->
            <div v-show="form6.fov == 1">
              <el-input v-model="form6.imageEnhancement_3"/>
            </div>
            <div v-show="form6.fov == 2">
              <el-input v-model="form6.fov_value3_1" class="input-line"/> x <el-input v-model="form6.fov_value3_2" class="input-line"/>
            </div>
          </td>
          <td>20mm铝板</td>
          <td>
            <el-input v-model="form6.tubeVoltage3_1"/>
          </td>
          <td>
            <el-input v-model="form6.tubeCurrent3_1"/>
          </td>
          <td>
            <el-input v-model="form6.brightness3_1_1"/>
          </td>
          <td>
            <el-input v-model="form6.brightness3_1_2"/>
          </td>
          <td>
            <el-input v-model="form6.brightness3_1_3"/>
          </td>
          <!-- <td class="result">
            <el-input v-model="form6.average3_1" disabled/>
          </td>
          <td class="result">
            <el-input v-model="form6.calibrationFactor3_1" disabled/>
          </td>
          <td class="result">
            <el-input v-model="form6.correctionValue3_1" disabled/>
          </td> -->
          <td rowspan="2" class="result">
            <el-input v-model="form6.average_3" disabled/>
          </td>
          <td class="result">
            <el-input v-model="form6.brightnessDeviation3_1" disabled/>
          </td>
        </tr>
        <!-- 第六行 -->
        <tr v-if="false">
          <td>20mm铝板+1.5mm铜板</td>
          <td>
            <el-input v-model="form6.tubeVoltage3_2"/>
          </td>
          <td>
            <el-input v-model="form6.tubeCurrent3_2"/>
          </td>
          <td>
            <el-input v-model="form6.brightness3_2_1"/>
          </td>
          <td>
            <el-input v-model="form6.brightness3_2_2"/>
          </td>
          <td>
            <el-input v-model="form6.brightness3_2_3"/>
          </td>
          <!-- <td class="result">
            <el-input v-model="form6.average3_2" disabled/>
          </td>
          <td class="result">
            <el-input v-model="form6.calibrationFactor3_2" disabled/>
          </td>
          <td class="result">
            <el-input v-model="form6.correctionValue3_2" disabled/>
          </td> -->
          <td class="result">
            <el-input v-model="form6.brightnessDeviation3_2" disabled/>
          </td>
        </tr>
      </table>

      <!-- <div class="innertitle">
        <i>
          6.自动亮度控制（ <el-checkbox v-model="form6.notHave"> 无 AEC不检测此项</el-checkbox> ） 校准因子$C_{f}$ =<el-input v-model="form6.calibrationFactor"/>
        </i>
      </div> -->

      <!-- <table border="1" cellspacing="0" cellpadding="0" align="center" style="width: 100%;">
        <tr>
          <td rowspan="2" width="150px">
            影像接收器照射野尺 <br/>
            寸(<el-select v-model="form6.irradiationFieldSizeUnit"
                          placeholder="请选择"
                          style="width: 70%; display: inline-block"
                          class="inputborder"
                          @change="handleChangeReadoutValueUnit($event, 6)"
                        >
                <el-option
                  v-for="item in fieldSizeList"
                  :key="item.id"
                  :label="item.label" :value="item.value"></el-option>
              </el-select>)
          </td>
          <td rowspan="2">模体材料</td>
          <td rowspan="2">
            管电压<br/>(kV)
          </td>
          <td rowspan="2">管电流<br/>(mA)</td>
          <td colspan="5"><i>亮度(cd/m^2)</i></td>
          <td rowspan="2"><i>$E_{c}$</i>(%)</td>
        </tr>

        <tr>
          <td colspan="3">读数</td>
          <td>读数平均值<br/> <i>$C_{i}$</i></td>
          <td><i>$\overline{C}$</i></td>
        </tr>

        <tr>
          <td rowspan="2"><el-input v-model="form6.irradiationFieldSize"/></td>
          <td>20mmAl</td>
          <td><el-input v-model="form6.tubeVoltage_1"/></td>
          <td><el-input v-model="form6.tubeCurrent_1"/></td>
          <td><el-input v-model="form6.brightness_1_1"/></td>
          <td><el-input v-model="form6.brightness_1_2"/></td>
          <td><el-input v-model="form6.brightness_1_3"/></td>
          <td><el-input v-model="form6.average_1"/></td>
          <td rowspan="2"><el-input v-model="form6.average"/></td>
          <td rowspan="2"><el-input v-model="form6.result"/></td>
        </tr>
        <tr>
          <td>20mmAl+1.5mmCu</td>
          <td><el-input v-model="form6.tubeVoltage_2"/></td>
          <td><el-input v-model="form6.tubeCurrent_2"/></td>
          <td><el-input v-model="form6.brightness_2_1"/></td>
          <td><el-input v-model="form6.brightness_2_2"/></td>
          <td><el-input v-model="form6.brightness_2_3"/></td>
          <td><el-input v-model="form6.average_2"/></td>
        </tr>

      </table>
      <div class="tip-50">
        <i>亮度偏差: $E_{c} =(C_{i} - \overline{C})/\overline{C}$</i>
      </div> -->
    </div>

    <!-- 7.近台同室操作位透视防护区检测平面周围剂量当量率------------------------------------------------------------------ -->
    <div id="table7">
      <div class="innertitle">
        7.近台同室操作位透视防护区检测平面周围剂量当量率： ( <el-checkbox v-model="form7.notHave">该设备非同室近台操作</el-checkbox>)<i>$K=K_{1}·f$</i>
      </div>
      <table border="1" cellspacing="0" cellpadding="0" align="center" style="width: 100%;">
        <tr>
          <td width="70px">检测条件</td>
          <td width="225px">
            <el-input v-model="form7.tubeVoltage" class="input-line"/>kV,
            <el-input v-model="form7.tubeCurrent" class="input-line"/>mA,
            <el-input v-model="form7.exposureTime" data-cusValidate="text" class="input-line"/>s
          </td>
          <td width="70px">散射模体</td>
          <td width="180px" colspan="2">
            <el-checkbox v-model="form7.standardModel">标准水模</el-checkbox><br/>
            <el-checkbox v-model="form7.standardModelAnd_1_5mm">标准水模+1.5mm铜板</el-checkbox>
          </td>
          <td width="160px" style="text-align: left;">
            <el-radio v-model="form7.fov" :label="1">
              影像增强器视野
              (<el-radio-group v-model="form7.fovUnit">
                <el-radio :label="0">mm</el-radio>
                <el-radio style="margin-right: 0px;" :label="1">in</el-radio>
              </el-radio-group>)
            </el-radio><br />
            <el-radio v-model="form7.fov" :label="2">平板探测器视野(mm)</el-radio>
          </td>
          <td width="150px" colspan="2">
            <!-- <el-input v-model="form7.irradiatedFieldArea" class="input-line"/> -->
            <div v-show="form7.fov == 1">
              <el-input class="input-line" v-model="form7.imageEnhancement"/>
            </div>
            <div v-show="form7.fov == 2">
              <el-input v-model="form7.fov_value1" class="input-line"/>
               x
              <el-input v-model="form7.fov_value2" class="input-line"/>
            </div>
          </td>
          <td style="width: 90px;">入射屏直径</td>
          <td width="110px"><el-input v-model="form7.incidentPlateDiameter" class="input-line"/></td>
        </tr>
        <tr>
          <td>SID,cm</td>
          <td><el-input v-model="form7.sid" class="input-line"/></td>
          <td>射束方向</td>
          <td colspan="2"><el-input data-cusValidate="text" v-model="form7.beamDirection" class="input-line"/></td>
          <td>剂量模式</td>
          <td colspan="2"><el-input data-cusValidate="text" v-model="form7.dosePattern" class="input-line"/></td>
          <td>校准因子f</td>
          <td class="result"><el-input v-model="form7.calibrationFactor" class="input-line" disabled/></td>
        </tr>
        <tr>
          <td rowspan="4">检测位置</td>
          <td rowspan="4">检测点高度</td>
          <td colspan="4">第一术者位剂量率</td>
          <td colspan="4">第二术者位剂量率（
            <el-checkbox
              style="margin-right: 0px;"
              v-model="form7.exist_2"
              @change="(value) => {
                if (value === false) {
                  form7.headReadoutValue_2 = ''
                  form7.chestReadoutValue_2 = ''
                  form7.bellyReadoutValue_2 = ''
                  form7.lowerExtremityReadoutValue_2 = ''
                  form7.footReadoutValue_2 = ''

                  form7.headReadoutValueUnit_2 = ''
                  form7.chestReadoutValueUnit_2 = ''
                  form7.bellyReadoutValueUnit_2 = ''
                  form7.lowerExtremityReadoutValueUnit_2 = ''
                  form7.footReadoutValueUnit_2 = ''

                  form7.headCorrectedValue_2 = ''
                  form7.chestCorrectedValue_2 = ''
                  form7.bellyCorrectedValue_2 = ''
                  form7.lowerExtremityCorrectedValue_2 = ''
                  form7.footCorrectedValue_2 = ''
                }
              }"
            >无此位点</el-checkbox>
            ）</td>
        </tr>

        <tr>
          <td colspan="4" style="text-align: left;">
            <el-checkbox style="margin-right: 0px;" v-model="form7.leadSuspension_1">铅悬挂防护屏</el-checkbox>
            <span style="margin-left: 0px;"><el-input v-model="form7.leadSuspensionNumber_1" class="input-line"/>个</span>;
            <el-checkbox style="margin-left: 30px; margin-right: 0px;" v-model="form7.leadProtection_1">铅防护吊帘</el-checkbox>
            <span style="margin-left: 0px;"><el-input v-model="form7.leadProtectionNumber_1" class="input-line"/>个</span>
            <br />
            <el-checkbox style="margin-right: 0px;" v-model="form7.theBedCurtain_1">床侧防护帘</el-checkbox>
            <span style="margin-left: 0px;"><el-input v-model="form7.theBedCurtainNumber_1" class="input-line"/>个</span>;
            <el-checkbox style="margin-left: 30px; margin-right: 0px;" v-model="form7.theBedScreen_1">床侧防护屏</el-checkbox>
            <span style="margin-left: 0px;"><el-input v-model="form7.theBedScreenNumber_1" class="input-line"/>个</span>
            <br />
            <el-checkbox style="margin-right: 0px;" v-model="form7.moveLeadSuspension_1">移动铅防护屏风</el-checkbox>
            <span style="margin-left: 0px;"><el-input v-model="form7.moveLeadSuspensionNumber_1" class="input-line"/>个</span>;
          </td>
          <td colspan="4" style="text-align: left;">
            <el-checkbox style="margin-right: 0px;" v-model="form7.leadSuspension_2">铅悬挂防护屏</el-checkbox>
            <span style="margin-left: 0px;"><el-input v-model="form7.leadSuspensionNumber_2" class="input-line"/>个</span>;
            <el-checkbox style="margin-left: 30px; margin-right: 0px;" v-model="form7.leadProtection_2">铅防护吊帘</el-checkbox>
            <span style="margin-left: 0px;"><el-input v-model="form7.leadProtectionNumber_2" class="input-line"/>个</span>
            <br />
            <el-checkbox style="margin-right: 0px;" v-model="form7.theBedCurtain_2">床侧防护帘</el-checkbox>
            <span style="margin-left: 0px;"><el-input v-model="form7.theBedCurtainNumber_2" class="input-line"/>个</span>;
            <el-checkbox style="margin-left: 30px; margin-right: 0px;" v-model="form7.theBedScreen_2">床侧防护屏</el-checkbox>
            <span style="margin-left: 0px;"><el-input v-model="form7.theBedScreenNumber_2" class="input-line"/>个</span>
            <br />
            <el-checkbox style="margin-right: 0px;" v-model="form7.moveLeadSuspension_2">移动铅防护屏风</el-checkbox>
            <span style="margin-left: 0px;"><el-input v-model="form7.moveLeadSuspensionNumber_2" class="input-line"/>个</span>;
          </td>
        </tr>
        <tr>
          <td colspan="3">测量值<i>$K_{1}$</i></td>
          <td rowspan="2">修正值K(μSv/h)</td>
          <td colspan="3">测量值<i>$K_{1}$</i></td>
          <td rowspan="2">修正值K(μSv/h)</td>
        </tr>
        <tr>
          <td>读出值</td>
          <td colspan="2">读出值单位</td>
          <td>读出值</td>
          <td colspan="2" width="190px">读出值单位</td>
        </tr>
        <tr>
          <td>头部</td>
          <td>距地面155cm</td>
          <td><el-input v-model="form7.headReadoutValue_1" class="input-line"/></td>
          <td colspan="2">
            <el-radio v-model="form7.headReadoutValueUnit_1" :label="1">μSv/h</el-radio>
            <el-radio v-model="form7.headReadoutValueUnit_1" :label="2">mSv/h</el-radio>
          </td>
          <td class="result"><el-input v-model="form7.headCorrectedValue_1" class="input-line" disabled/></td>
          <td><el-input v-model="form7.headReadoutValue_2" class="input-line"/></td>
          <td colspan="2">
            <el-radio v-model="form7.headReadoutValueUnit_2" :label="1">μSv/h</el-radio>
            <el-radio v-model="form7.headReadoutValueUnit_2" :label="2">mSv/h</el-radio>
          </td>
          <td class="result"><el-input v-model="form7.headCorrectedValue_2" class="input-line" disabled/></td>
        </tr>
        <tr>
          <td>胸部</td>
          <td>距地面125cm</td>
          <td><el-input v-model="form7.chestReadoutValue_1" class="input-line"/></td>
          <td colspan="2">
            <el-radio v-model="form7.chestReadoutValueUnit_1" :label="1">μSv/h</el-radio>
            <el-radio v-model="form7.chestReadoutValueUnit_1" :label="2">mSv/h</el-radio>
          </td>
          <td class="result"><el-input v-model="form7.chestCorrectedValue_1" class="input-line" disabled/></td>
          <td><el-input v-model="form7.chestReadoutValue_2" class="input-line"/></td>
          <td colspan="2">
            <el-radio v-model="form7.chestReadoutValueUnit_2" :label="1">μSv/h</el-radio>
            <el-radio v-model="form7.chestReadoutValueUnit_2" :label="2">mSv/h</el-radio>
          </td>
          <td class="result"><el-input v-model="form7.chestCorrectedValue_2" class="input-line" disabled/></td>
        </tr>
        <tr>
          <td>腹部</td>
          <td>距地面105cm</td>
          <td><el-input v-model="form7.bellyReadoutValue_1" class="input-line"/></td>
          <td colspan="2">
            <el-radio v-model="form7.bellyReadoutValueUnit_1" :label="1">μSv/h</el-radio>
            <el-radio v-model="form7.bellyReadoutValueUnit_1" :label="2">mSv/h</el-radio>
          </td>
          <td class="result"><el-input v-model="form7.bellyCorrectedValue_1" class="input-line" disabled/></td>
          <td><el-input v-model="form7.bellyReadoutValue_2" class="input-line"/></td>
          <td colspan="2">
            <el-radio v-model="form7.bellyReadoutValueUnit_2" :label="1">μSv/h</el-radio>
            <el-radio v-model="form7.bellyReadoutValueUnit_2" :label="2">mSv/h</el-radio>
          </td>
          <td class="result"><el-input v-model="form7.bellyCorrectedValue_2" class="input-line" disabled/></td>
        </tr>
        <tr>
          <td>下肢</td>
          <td>距地面80cm</td>
          <td><el-input v-model="form7.lowerExtremityReadoutValue_1" class="input-line"/></td>
          <td colspan="2">
            <el-radio v-model="form7.lowerExtremityReadoutValueUnit_1" :label="1">μSv/h</el-radio>
            <el-radio v-model="form7.lowerExtremityReadoutValueUnit_1" :label="2">mSv/h</el-radio>
          </td>
          <td class="result"><el-input v-model="form7.lowerExtremityCorrectedValue_1" class="input-line" disabled/></td>
          <td><el-input v-model="form7.lowerExtremityReadoutValue_2" class="input-line"/></td>
          <td colspan="2">
            <el-radio v-model="form7.lowerExtremityReadoutValueUnit_2" :label="1">μSv/h</el-radio>
            <el-radio v-model="form7.lowerExtremityReadoutValueUnit_2" :label="2">mSv/h</el-radio>
          </td>
          <td class="result"><el-input v-model="form7.lowerExtremityCorrectedValue_2" class="input-line" disabled/></td>
        </tr>
        <tr>
          <td>足部</td>
          <td>距地面20cm</td>
          <td><el-input v-model="form7.footReadoutValue_1" class="input-line"/></td>
          <td colspan="2">
            <el-radio v-model="form7.footReadoutValueUnit_1" :label="1">μSv/h</el-radio>
            <el-radio v-model="form7.footReadoutValueUnit_1" :label="2">mSv/h</el-radio>
          </td>
          <td class="result"><el-input v-model="form7.footCorrectedValue_1" class="input-line" disabled/></td>
          <td><el-input v-model="form7.footReadoutValue_2" class="input-line"/></td>
          <td colspan="2">
            <el-radio v-model="form7.footReadoutValueUnit_2" :label="1">μSv/h</el-radio>
            <el-radio v-model="form7.footReadoutValueUnit_2" :label="2">mSv/h</el-radio>
          </td>
          <td class="result"><el-input v-model="form7.footCorrectedValue_2" class="input-line" disabled/></td>
        </tr>
        <!-- <tr>
          <td rowspan="3">检测位置</td>
          <td rowspan="3">检测点高度</td>
          <td colspan="4">第三术者位剂量率（
            <el-checkbox
              style="margin-right: 0px;"
              v-model="form7.exist_3"
              @change="(value) => {
                if (value === false) {
                  form7.headReadoutValue_3 = ''
                  form7.chestReadoutValue_3 = ''
                  form7.bellyReadoutValue_3 = ''
                  form7.lowerExtremityReadoutValue_3 = ''
                  form7.footReadoutValue_3 = ''

                  form7.headReadoutValueUnit_3 = ''
                  form7.chestReadoutValueUnit_3 = ''
                  form7.bellyReadoutValueUnit_3 = ''
                  form7.lowerExtremityReadoutValueUnit_3 = ''
                  form7.footReadoutValueUnit_3 = ''

                  form7.headCorrectedValue_3 = ''
                  form7.chestCorrectedValue_3 = ''
                  form7.bellyCorrectedValue_3 = ''
                  form7.lowerExtremityCorrectedValue_3 = ''
                  form7.footCorrectedValue_3 = ''
                }
              }"
            >无此位点</el-checkbox>
            ）</td>
          <td colspan="4">第四术者位剂量率（
            <el-checkbox
              style="margin-right: 0px;"
              v-model="form7.exist_4"
              @change="(value) => {
                if (value === false) {
                  form7.headReadoutValue_4 = ''
                  form7.chestReadoutValue_4 = ''
                  form7.bellyReadoutValue_4 = ''
                  form7.lowerExtremityReadoutValue_4 = ''
                  form7.footReadoutValue_4 = ''

                  form7.headReadoutValueUnit_4 = ''
                  form7.chestReadoutValueUnit_4 = ''
                  form7.bellyReadoutValueUnit_4 = ''
                  form7.lowerExtremityReadoutValueUnit_4 = ''
                  form7.footReadoutValueUnit_4 = ''

                  form7.headCorrectedValue_4 = ''
                  form7.chestCorrectedValue_4 = ''
                  form7.bellyCorrectedValue_4 = ''
                  form7.lowerExtremityCorrectedValue_4 = ''
                  form7.footCorrectedValue_4 = ''
                }
              }"
            >无此位点</el-checkbox>
            ）</td>
        </tr>
        <tr>
          <td colspan="3">测量值<i>$K_{1}$</i></td>
          <td rowspan="2">修正值K(μSv/h)</td>
          <td colspan="3">测量值<i>$K_{1}$</i></td>
          <td rowspan="2">修正值K(μSv/h)</td>
        </tr>
        <tr>
          <td>读出值</td>
          <td colspan="2">读出值单位</td>
          <td>读出值</td>
          <td colspan="2">读出值单位</td>
        </tr>
        <tr>
          <td>头部</td>
          <td>距地面155cm</td>
          <td><el-input v-model="form7.headReadoutValue_3" class="input-line"/></td>
          <td colspan="2">
            <el-radio v-model="form7.headReadoutValueUnit_3" :label="1">μSv/h</el-radio>
            <el-radio v-model="form7.headReadoutValueUnit_3" :label="2">mSv/h</el-radio>
          </td>
          <td class="result"><el-input v-model="form7.headCorrectedValue_3" class="input-line" disabled/></td>
          <td><el-input v-model="form7.headReadoutValue_4" class="input-line"/></td>
          <td colspan="2">
            <el-radio v-model="form7.headReadoutValueUnit_4" :label="1">μSv/h</el-radio>
            <el-radio v-model="form7.headReadoutValueUnit_4" :label="2">mSv/h</el-radio>
          </td>
          <td class="result"><el-input v-model="form7.headCorrectedValue_4" class="input-line" disabled/></td>
        </tr>
        <tr>
          <td>胸部</td>
          <td>距地面125cm</td>
          <td><el-input v-model="form7.chestReadoutValue_3" class="input-line"/></td>
          <td colspan="2">
            <el-radio v-model="form7.chestReadoutValueUnit_3" :label="1">μSv/h</el-radio>
            <el-radio v-model="form7.chestReadoutValueUnit_3" :label="2">mSv/h</el-radio>
          </td>
          <td class="result"><el-input v-model="form7.chestCorrectedValue_3" class="input-line" disabled/></td>
          <td><el-input v-model="form7.chestReadoutValue_4" class="input-line"/></td>
          <td colspan="2">
            <el-radio v-model="form7.chestReadoutValueUnit_4" :label="1">μSv/h</el-radio>
            <el-radio v-model="form7.chestReadoutValueUnit_4" :label="2">mSv/h</el-radio>
          </td>
          <td class="result"><el-input v-model="form7.chestCorrectedValue_4" class="input-line" disabled/></td>
        </tr>
        <tr>
          <td>腹部</td>
          <td>距地面105cm</td>
          <td><el-input v-model="form7.bellyReadoutValue_3" class="input-line"/></td>
          <td colspan="2">
            <el-radio v-model="form7.bellyReadoutValueUnit_3" :label="1">μSv/h</el-radio>
            <el-radio v-model="form7.bellyReadoutValueUnit_3" :label="2">mSv/h</el-radio>
          </td>
          <td class="result"><el-input v-model="form7.bellyCorrectedValue_3" class="input-line" disabled/></td>
          <td><el-input v-model="form7.bellyReadoutValue_4" class="input-line"/></td>
          <td colspan="2">
            <el-radio v-model="form7.bellyReadoutValueUnit_4" :label="1">μSv/h</el-radio>
            <el-radio v-model="form7.bellyReadoutValueUnit_4" :label="2">mSv/h</el-radio>
          </td>
          <td class="result"><el-input v-model="form7.bellyCorrectedValue_4" class="input-line" disabled/></td>
        </tr>
        <tr>
          <td>下肢</td>
          <td>距地面80cm</td>
          <td><el-input v-model="form7.lowerExtremityReadoutValue_3" class="input-line"/></td>
          <td colspan="2">
            <el-radio v-model="form7.lowerExtremityReadoutValueUnit_3" :label="1">μSv/h</el-radio>
            <el-radio v-model="form7.lowerExtremityReadoutValueUnit_3" :label="2">mSv/h</el-radio>
          </td>
          <td class="result"><el-input v-model="form7.lowerExtremityCorrectedValue_3" class="input-line" disabled/></td>
          <td><el-input v-model="form7.lowerExtremityReadoutValue_4" class="input-line"/></td>
          <td colspan="2">
            <el-radio v-model="form7.lowerExtremityReadoutValueUnit_4" :label="1">μSv/h</el-radio>
            <el-radio v-model="form7.lowerExtremityReadoutValueUnit_4" :label="2">mSv/h</el-radio>
          </td>
          <td class="result"><el-input v-model="form7.lowerExtremityCorrectedValue_4" class="input-line" disabled/></td>
        </tr>
        <tr>
          <td>足部</td>
          <td>距地面20cm</td>
          <td><el-input v-model="form7.footReadoutValue_3" class="input-line"/></td>
          <td colspan="2">
            <el-radio v-model="form7.footReadoutValueUnit_3" :label="1">μSv/h</el-radio>
            <el-radio v-model="form7.footReadoutValueUnit_3" :label="2">mSv/h</el-radio>
          </td>
          <td class="result"><el-input v-model="form7.footCorrectedValue_3" class="input-line" disabled/></td>
          <td><el-input v-model="form7.footReadoutValue_4" class="input-line"/></td>
          <td colspan="2">
            <el-radio v-model="form7.footReadoutValueUnit_4" :label="1">μSv/h</el-radio>
            <el-radio v-model="form7.footReadoutValueUnit_4" :label="2">mSv/h</el-radio>
          </td>
          <td class="result"><el-input v-model="form7.footCorrectedValue_4" class="input-line" disabled/></td>
        </tr> -->
        <tr>
          <td colspan="10" style="text-align: left;">附注：修正值均未扣除本底值。</td>
        </tr>
      </table>


      <!-- <div class="innertitle">
        7.透视防护区检测平面上周围剂量当量率 ( <el-checkbox v-model="form7.notHave">非介入放射学设备、近台同室操作的 射线设备不检测此项</el-checkbox> )
      </div> -->

      <!-- <div class="tip-30">检测条件:标准水箱模体(无板)，条件与“透视受检者入射体表空气比释动能率典型值”相同。</div>
      <div class="tip-30">曝光条件:

          <el-checkbox v-model="form7.perspective">透视模式
              <el-input v-model="form7.tubeVoltage"/>kV,
              <el-input v-model="form7.tubeCurrent"/>mA,
              <el-input v-model="form7.second"/>s,
          </el-checkbox> <br/>
          <el-checkbox v-model="form7.upward">射束垂直从床下向床上照射;</el-checkbox>
          <el-checkbox v-model="form7.downward">射束垂直从床上向床下照射。</el-checkbox>

      </div> -->

      <!-- <div class="tip-30">第一术者位距管球焦点轴线30cm，第二术者位位距管球焦点轴线90cm，距离床边10cm.</div> -->

      <!-- <div class="img" style="text-align: center;">
        <img src="" alt="">
      </div>

      <div class="tip-30">
        检测时使用的辅助防护设施情况: <br/>
          <el-checkbox v-model="form7.protectiveHang">铅悬挂防护屏:铅当量: <el-input v-model="form7.protectiveHangEquivalent"/>mmPb;</el-checkbox>
          <el-checkbox v-model="form7.protectiveLead"> 防护吊帘:铅当量: <el-input v-model="form7.protectiveLeadEquivalent"/>mmPb;</el-checkbox> <br/>
          <el-checkbox v-model="form7.protectiveBedside">床侧防护帘:铅当量: <el-input v-model="form7.protectiveBedsideEquivalent"/>mmPb;</el-checkbox>
          <el-checkbox v-model="form7.protectiveBedsideScreen">床侧防护屏:铅当量: <el-input v-model="form7.protectiveBedsideScreenEquivalent"/>mmPb;</el-checkbox> <br/>
          <el-checkbox v-model="form7.move">移动铅防护屏风:数量: <el-input v-model="form7.moveNumber"/>个；
                                              铅当量: <el-input v-model="form7.moveEquivalent"/>mmPb;
          </el-checkbox>
        <br />
        <i>注:校准因子$C_{f}$</i>=<el-input v-model="form7.calibrationFactor"/>;校准值=读数x校准因子。
      </div> -->

      <!-- <table border="1" cellspacing="0" cellpadding="0" align="center" style="width: 100%;">
        <tr>
          <td rowspan="2">检测<br/>位置</td>
          <td colspan="2">第一术者位周围剂量当量率(<i>$\mu$</i>Sv/h)</td>
          <td colspan="2">第二术者位周围剂量当量率(<i>$\mu$</i>Sv/h)</td>
          <td rowspan="2">备注</td>
        </tr>
        <tr>
          <td>读数</td>
          <td>校准值</td>
          <td>读数</td>
          <td>校准值</td>
        </tr>
        <tr>
          <td>头部</td>
          <td><el-input v-model="form7.readoutValue_1_Head"/></td>
          <td><el-input v-model="form7.calibrationValue_1_Head"/></td>
          <td><el-input v-model="form7.readoutValue_2_Head"/></td>
          <td><el-input v-model="form7.calibrationValue_2_Head"/></td>
          <td><el-input v-model="form7.remarkHead" data-cusValidate="text"/></td>
        </tr>
        <tr>
          <td>胸部</td>
          <td><el-input v-model="form7.readoutValue_1_Chest"/></td>
          <td><el-input v-model="form7.calibrationValue_1_Chest"/></td>
          <td><el-input v-model="form7.readoutValue_2_Chest"/></td>
          <td><el-input v-model="form7.calibrationValue_2_Chest"/></td>
          <td><el-input v-model="form7.remarkChest" data-cusValidate="text"/></td>
        </tr>
        <tr>
          <td>腹部</td>
          <td><el-input v-model="form7.readoutValue_1_Abdomen"/></td>
          <td><el-input v-model="form7.calibrationValue_1_Abdomen"/></td>
          <td><el-input v-model="form7.readoutValue_2_Abdomen"/></td>
          <td><el-input v-model="form7.calibrationValue_2_Abdomen"/></td>
          <td><el-input v-model="form7.remarkAbdomen" data-cusValidate="text"/></td>
        </tr>
        <tr>
          <td>下肢</td>
          <td><el-input v-model="form7.readoutValue_1_LowerLimbs"/></td>
          <td><el-input v-model="form7.calibrationValue_1_LowerLimbs"/></td>
          <td><el-input v-model="form7.readoutValue_2_LowerLimbs"/></td>
          <td><el-input v-model="form7.calibrationValue_2_LowerLimbs"/></td>
          <td><el-input v-model="form7.remarkLowerLimbs" data-cusValidate="text"/></td>
        </tr>
        <tr>
          <td>足部</td>
          <td><el-input v-model="form7.readoutValue_1_Foot"/></td>
          <td><el-input v-model="form7.calibrationValue_1_Foot"/></td>
          <td><el-input v-model="form7.readoutValue_2_Foot"/></td>
          <td><el-input v-model="form7.calibrationValue_2_Foot"/></td>
          <td><el-input v-model="form7.remarkFoot" data-cusValidate="text"/></td>
        </tr>
      </table> -->
    </div>

    <LowContrastTestCardDialog
      :show.sync="showLowContrastTestCardDialog"
    ></LowContrastTestCardDialog>
  </div>
</template>

<script>
import {getInfoById01, saveInfo01, kermaRateTypical, kermaRateMax, addDetector,
  kermaRateIncidence, contrastResolutionHigh, contrastResolutionLow, automaticBrightness, doseEquivalentRate} from '@/api/testItem/itemTS01'
import LowContrastTestCardDialog from '@/views/slide/component/LowContrastTestCardDialog.vue'

export default {
  name: "testItem01",
  components: {
    LowContrastTestCardDialog
  },
  data() {
    return {
      itemIndex: 0,

      fovList: [
        {
          id: 1,
          label: 'mm',
          value: 1
        },
      ],
      readoutList: [
        {
          id: 1,
          label: 'μGy/s',
          value: 1
        },
        {
          id: 2,
          label: 'μGy/min',
          value: 2
        },
        {
          id: 3,
          label: 'mGy/min',
          value: 3
        },
      ],
      fieldSizeList: [
        {
          id: 1,
          label: 'mm',
          value: 1
        },
      ],
      // tab切换通用数据
			form: {},
			// 表单-1.透视受检者入射体表空气比释动能率典型值
			form1: {

			},
			// 表单-2、透视受检者入射体表空气比释动能率最大值
			form2: {

			},
			// 表单-3、高对比度分辨力
			form3: {

			},
			// 表单-4、低对比度分辨力
			form4: {

			},
			// 表单-5、入射屏前空气比释动能率
			form5: {

			},
			// 表单-6、自动亮度控制
			form6: {

			},
			// 表单-7、透视防护区检测平面上周围剂量当量率
			form7: {

			},
			itemsId: null,

      showLowContrastTestCardDialog: false
    };
  },
  props: {
		//
    tabList: {
      type: Array,
      default: () => ([])
    },
		// tab栏
    activeNameEquipment: {
			type: String,
      default: "0",
    },
		// 基本信息数据
    basicForm: {
			type: Object,
      default: () => {
				return {}
			},
    },
  },
  watch: {
    activeNameEquipment: {
      handler(val) {
		    let _this = this;
				this.$nextTick(()=>{
					// 透视通用检测项目
					// 获取详情
          if (this.activeNameEquipment.indexOf(':') > -1) {
            this.itemIndex = this.activeNameEquipment.split(':')[0].split('-')[1]
          }
          getInfoById01(this.basicForm.resultId, this.itemIndex).then(response => {
            let {itemsId, resultId, sdd, sid, fps, fpsDisplay, inspectionTypeId, positionName} = response.data;
            this.itemsId =  response.data?.itemsId;
            console.log(fps && fps == 15)
            this.form = {itemsId, resultId, sdd, sid, fps, fpsDisplay, inspectionTypeId, positionName}
            this.$set(this.form, "isfps", fps && fps == 15);
            this.$set(this.form, "fpsedit", (fps && fps == '15') ? '': fps);
            // 1.透视受检者入射体表空气比释动能率典型值
            this.form1 =  response.data?.kermaRateTypical || {};
            // 2、透视受检者入射体表空气比释动能率最大值
            this.form2 =  response.data?.kermaRateMax || {};
            // 3、高对比度分辨力
            this.form3 =  response.data?.contrastResolutionHigh || {};
            // 4、低对比度分辨力
            this.form4 =  response.data?.contrastResolutionLow || {};
            // 5、入射屏前空气比释动能率
            this.form5 =  response.data?.kermaRateIncidence || {};
            // 6、自动亮度控制
            this.form6 =  response.data?.automaticBrightness || {};
            // 7、透视防护区检测平面上周围剂量当量率
            this.form7 =  response.data?.doseEquivalentRate || {};

            this.$nextTick(() => {
              // 绑定请求
              let itemsLength = 7;
              for (let index = 0; index < itemsLength; index++) {
                let tableInputs = Array.from(document.getElementById(`table${index + 1}`).getElementsByTagName("input")).filter(ele => {
                  return !ele.readOnly
                });
                for (let i = 0; i < tableInputs.length; i++) {
                  this.bind(tableInputs[i], () => {
                    this.submitTestForm(index + 1)
                  })
                }
              }
            })
          }).catch((response) => {
            console.log("catch-->getInfoById04", response);
            this.$emit("loadingchange", true);
          });
				})
      },
      deep: true,
      immediate: true
    },
    'form.isfps': {
      handler(val) {
        if (!val) return
        this.changeFps(null, 15)
      },
      immediate: true,
      deep: true,
    }
  },
  methods: {
    /**
     * isPostion  table{XX}/table2-{XX}
     */
    handleChangeReadoutValueUnit(value, isPostion) {
      this.submitTestForm(isPostion)
    },
    // 更改fps
    changeFps(event, value) {
      let fps = event ? event.target.value : value
      console.log(event)
      this.$set(this.form, 'fps', Number(fps))
      this.handleChangeInfo();
    },
		// 透视通用检测项目
		submitTestForm(index) {
			console.log("提交检测项", index);
			this.$emit("loadingchange", true); /* 说明绑定成功 */
			this[`form${index}`].itemsId = this.itemsId;
			switch (index) {
				// 1.透视受检者入射体表空气比释动能率典型值
				case 1:
          this.form1.index = Number(this.itemIndex)
          kermaRateTypical(this.form1).then((response) => {
						// this.$modal.msgSuccess("保存成功");
						response.data ? this.form1 = response.data : "";
						this.$emit("loadingchange", false);
					})
        	break;
				// 2.透视受检者入射体表空气比释动能率最大值
				case 2:
					// this.form2.itemsId = this.itemsId;
          this.form2.index = Number(this.itemIndex)
					kermaRateMax(this.form2).then((response) => {
						// this.$modal.msgSuccess("保存成功");
						// this.form2 = response.data;
						response.data ? this.form2 = response.data : "";
						this.$emit("loadingchange", false);
					})
					break;
				case 3:
					// 3.高对比度分辨力
          this.form3.index = Number(this.itemIndex)
					contrastResolutionHigh(this.form3).then((response) => {
						// this.$modal.msgSuccess("保存成功");
						response.data ? this.form3 = response.data : "";
						this.$emit("loadingchange", false);
					})
					break;
				case 4:
					// 4.低对比度分辨力
          this.form4.index = Number(this.itemIndex)
					contrastResolutionLow(this.form4).then((response) => {
						// this.$modal.msgSuccess("保存成功");
						response.data ? this.form4 = response.data : "";
						this.$emit("loadingchange", false);
					})
					break;
				case 5:
					// 5.入射屏前空气比释动能率
					// this.form5.itemsId = this.itemsId;
          this.form5.index = Number(this.itemIndex)
					kermaRateIncidence(this.form5).then((response) => {
						// this.$modal.msgSuccess("保存成功");
						response.data ? this.form5 = response.data : "";
						this.$emit("loadingchange", false);
					})
					break;
				case 6:
					// 6.自动亮度控制
          this.form6.index = Number(this.itemIndex)
					automaticBrightness(this.form6).then((response) => {
						// this.$modal.msgSuccess("保存成功");
						response.data ? this.form6 = response.data : "";
						this.$emit("loadingchange", false);
					})
					break;
				case 7:
					// 7、透视防护区检测平面上周围剂量当量率
          this.form7.index = Number(this.itemIndex)
					doseEquivalentRate(this.form7).then((response) => {
						// this.$modal.msgSuccess("保存成功");
						response.data ? this.form7 = response.data : "";
						this.$emit("loadingchange", false);
					})
					break;
			}
		},
		// 更改电压
		changetube(val, index) {
			console.log("更改电压", val);
			if (val == "other") {
				if (index == "5") {
					this.$set(this.form5, "tubeVoltage", "");
				}
				if (index == "7") {
					this.$set(this.form7, "tubeVoltage", "");
				}
				if (index == "81") {
					this.$set(this.form8, "tubeVoltage_1", "");
				}
				if (index == "82") {
					this.$set(this.form8, "tubeVoltage_2", "");
				}
				if (index == "2-8") {
					this.$set(this.form8, "sid", "");
				}
			}
			if (index == "2-1") {
				this.$set(this.form, "cus_formsid", "");
				if(val == "0") {
					this.$set(this.form, "sid", "180");
				}
				if(val == "1") {
					this.$set(this.form, "sid", this.form.cus_formsid);
				}
			}
		},
    async handleChangeInfo(field) {
      // console.log('11111111', this.activeNameEquipment)
      if (field == 'fps') {
        if (this.form.fps) {
          this.$set(this.form, 'fpsDisplay', 0)
        } else {
          this.$set(this.form, 'fpsDisplay', 1)
        }
      }
      await saveInfo01(this.form)
    },

    handleAddForm3Row() {
      if (!this.form3.details) this.form3.details = []
      this.form3.details.push({})
      this.$nextTick(() => {
        let tableInputs = Array.from(document.getElementById(`table3`).getElementsByTagName('input')).filter(ele => {
          return !ele.readOnly
        })
        for (let i = 0; i < tableInputs.length; i++) {
          this.bind(tableInputs[i], () => {
            this.submitTestForm(3)
          })
        }
      })
    },
    handleRemoveForm3Row(index) {
      this.form3.details.splice(index, 1)
      this.submitTestForm(3)
    },

    handleAddForm5Row() {
      if (!this.form5.details) this.form5.details = []
      this.form5.details.push({})
      this.$nextTick(() => {
        let tableInputs = Array.from(document.getElementById(`table5`).getElementsByTagName('input')).filter(ele => {
          return !ele.readOnly
        })
        for (let i = 0; i < tableInputs.length; i++) {
          this.bind(tableInputs[i], () => {
            this.submitTestForm(5)
          })
        }
      })
    },
    handleRemoveForm5Row(index) {
      this.form5.details.splice(index, 1)
      this.submitTestForm(5)
    },
		// 点击增加探测器
		handleAddTestItem01() {
			addDetector(this.basicForm.resultId).then(res => {
				this.$bus.$emit('add-testItem', '01')
			}).catch(err => {})
		}
  },
};
</script>

<style lang="scss" scoped>
@import '../content.scss';
</style>
